package gbench.mydata.driver;

import java.sql.ResultSet;
import java.sql.SQLException;

import gbench.common.tree.LittleTree.IRecord;
import gbench.mydata.driver.core.jdbc.AbstractPreparedSatement;

public class MyDataPreparedSatement extends AbstractPreparedSatement {

    /**
     * 
     * @param sql            sql 语句
     * @param connectionInfo 语句上下文
     */
    public MyDataPreparedSatement(final String sql, final IRecord connectionInfo) {
        super(sql, connectionInfo);
    }

    @Override
    public ResultSet executeQuery(String sql) throws SQLException {
        return new MyDataResultSet(sql, this.connectionInfo);
    }

    @Override
    public ResultSet executeQuery() throws SQLException {
        return new MyDataResultSet(sql, this.connectionInfo);
    }

}
